#include"heap.h"
void test01()
{
	Heap hp;
	HeapInit(&hp);
	HeapPush(&hp, 5);
	HeapPush(&hp, 3);
	HeapPush(&hp, 6);

	HeapDestory(&hp);
}
void test02()
{
	Heap hp;
	HeapInit(&hp);
	HeapPush(&hp, 5);
	HeapPush(&hp, 3);
	HeapPush(&hp, 6);
	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}
	HeapDestory(&hp);
}
int main()
{
	//test01;
	test02();


	return 0;
}